package pe.com.grupobbva.ohc.hy40;

public class OHC_HY40_PortTypeProxy implements pe.com.grupobbva.ohc.hy40.OHC_HY40_PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.ohc.hy40.OHC_HY40_PortType oHC_HY40_PortType = null;
  
  public OHC_HY40_PortTypeProxy() {
    _initOHC_HY40_PortTypeProxy();
  }
  
  public OHC_HY40_PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initOHC_HY40_PortTypeProxy();
  }
  
  private void _initOHC_HY40_PortTypeProxy() {
    try {
      oHC_HY40_PortType = (new pe.com.grupobbva.ohc.hy40.OHC_HY40_ServiceLocator()).getOHC_HY40_Port();
      if (oHC_HY40_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)oHC_HY40_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)oHC_HY40_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (oHC_HY40_PortType != null)
      ((javax.xml.rpc.Stub)oHC_HY40_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.ohc.hy40.OHC_HY40_PortType getOHC_HY40_PortType() {
    if (oHC_HY40_PortType == null)
      _initOHC_HY40_PortTypeProxy();
    return oHC_HY40_PortType;
  }
  
  public pe.com.grupobbva.ohc.hy40.CtConOhcHY40Rs callHY40(pe.com.grupobbva.ohc.hy40.CtConOhcHY40Rq conOhcHY40Rq) throws java.rmi.RemoteException{
    if (oHC_HY40_PortType == null)
      _initOHC_HY40_PortTypeProxy();
    return oHC_HY40_PortType.callHY40(conOhcHY40Rq);
  }
  
  
}